
<div id="aboutus" class="inner-tabs-panel">
    <div class="inner-content">
        <div class="panel">

            <div class="panel-heading">
                <div class="panel-title"> About US <code class="help">Slug : #aboutus</code></div>
            </div>

            <div class="panel-body wo-flag">
                 <div class="form-group">
                    <div class="slider">
                        <input type="checkbox" class="toggle-settings" id="enable-aboutus" name="theme_options[aboutus][enable]" value="1" <?php echo  (isset($aAboutUs['enable']) && !empty ($aAboutUs['enable']) ) ? 'checked' : ''; ?>>
                        <label class="form-label" for="enable-aboutus">Enable Aboutus</label>
                    </div>
                </div>
            </div>

            <div class="panel-body">
                <h4>Paralax</h4>
                <div class="form-group">
                    <?php $aboutusParallax = isset($aAboutUs['parallax']) && !empty($aAboutUs['parallax']) ? $aAboutUs['parallax'] : WO_ADMIN_IMG  . 'no-img.jpg'; ?>
                    <div class="image-wrap">
                        <span><img src="<?php echo $aboutusParallax; ?>" width="350"></span>
                    </div>
                    <br>
                    <a class="btn btn-white upload-img" data-insertlink=".wo-insert-link" data-append=".image-wrap">Get image</a>
                    <input class="insertlink" type="hidden" value="<?php echo  isset($aAboutUs['parallax']) ? $aAboutUs['parallax'] : ""; ?>" name="theme_options[aboutus][parallax]">
                </div>
            </div>


            <div class="panel-body">

                <div class="form-group">
                    <label class="form-label">Title</label>
                    <div class="controls">
                        <input type="text" class="form-control" name="theme_options[aboutus][title]" value="<?php echo isset($aAboutUs['title']) ? stripcslashes($aAboutUs['title']) : '';  ?>">
                    </div>
                </div>

                 <div class="form-group">
                    <label class="form-label">Short Description</label>
                    <div class="controls">
                        <input type="text" class="form-control" name="theme_options[aboutus][short_description]" value="<?php echo isset($aAboutUs['short_description']) ? stripcslashes($aAboutUs['short_description']) : '';  ?>">
                    </div>
                </div>

                <div class="form-group">
                    <label class="form-label">Description</label>
                    <div class="controls">
                        <textarea class="form-control" name="theme_options[aboutus][description]"><?php echo isset($aAboutUs['description']) ? stripcslashes($aAboutUs['description']) : '';  ?></textarea>
                    </div>
                </div>

            </div> <!--/end section1 of aboutus -->

            <div class="panel-body">
                <div class="form-group">
                    <label class="form-label">Choose your about</label>
                    <div class="controls">
                        <?php
                        $aPostMetaAboutUs = $this->wo_get_custom_post_content('qva_aboutus');

                        if ( empty($aPostMetaAboutUs) )
                        {
                            ?>

                            <p>You  haven't had any post yet
                                <a  class="help" href="<?php echo admin_url('edit.php'); ?>?post_type=qva_aboutus">Create some</a>
                            </p>

                        <?php
                        }else
                        {
                        ?> 
                        <select name="theme_options[aboutus][content]">
                            <?php
                            foreach ( $aPostMetaAboutUs as $k => $postAboutUs ) : setup_postdata($postAboutUs);
                                if (isset($aAboutUs['content']) && !empty($aAboutUs['content']) && $aAboutUs['content'] == $postAboutUs->ID )
                                {
                                    $selected = 'selected';
                                }else{
                                    if ($k == 0)
                                    {
                                        $selected = 'selected';
                                    }else{
                                        $selected = '';
                                    }
                                }

                                ?>
                                <option value="<?php echo $postAboutUs->ID; ?>" <?php echo $selected ?> ><?php echo $postAboutUs->post_title; ?></option>
                            <?php
                            $selected="";
                            endforeach;wp_reset_postdata();
                            ?>
                        </select>
                         <?php 
                            }
                        ?>
                    </div>
                </div>

            </div> <!--/end panel -->

        </div> <!--/end large-12-->
    </div>
</div>